<template>
  <div id="app">
  <el-container>
  <el-header>
    <img alt="" src="../src/assets/logo2.png" class="img">
    <div>石家庄平面设计师 薪资预测系统</div>
  </el-header>
  <el-container>
    <el-aside width="200px">
   <el-row class="tac">
   <el-col :span="24">
    <div class="divd"><p>菜单选项</p></div>
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>查看岗位信息</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1"><router-link to="/test">首页</router-link></el-menu-item>
          <el-menu-item index="1-2"><router-link to="/plane">平面设计师</router-link></el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>查看图表信息</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1"><router-link to="/tubing">图表1</router-link></el-menu-item>
          <el-menu-item index="1-2"><router-link to="/tubing2">图标2</router-link></el-menu-item>
          <el-menu-item index="1-3"><router-link to="/tubing3">图表3</router-link></el-menu-item>
          <el-menu-item index="1-3"><router-link to="/jiqiecharts">图表4</router-link></el-menu-item>
        </el-menu-item-group>
      </el-submenu>
       <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>查看岗位信息</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1"></el-menu-item>
          <el-menu-item index="1-2"></el-menu-item>
          <el-menu-item index="1-3"></el-menu-item>
        </el-menu-item-group>
      </el-submenu>
       <el-submenu index="4">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>查看岗位信息</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1"></el-menu-item>
          <el-menu-item index="1-2"></el-menu-item>
          <el-menu-item index="1-3"></el-menu-item>
        </el-menu-item-group>
      </el-submenu>

    </el-menu>
  </el-col>
</el-row>
    </el-aside>
    <el-main><router-view/></el-main>
  </el-container>
</el-container>
  </div>
</template>

<style>
* {
  margin: 0;
  padding: 0;
}
.img{
  height: 100px !important;
  width: 300px;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
  .el-header{
    background-color: #B3C0D1;
    color: #333;
    display: flex;
    font-size: 40px;
    padding-top: 20px !important;
    height: 20vh !important;
  }
  .el-header div{
    line-height: 137px;
    margin-left: 100px;
  }
  .el-aside .divd p{
    height: 50px;
    width: 200px;
    border: #2b542c 1px;
    line-height: 50px;

  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
    height: 80vh;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
<script>
 export default {
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>